package com.jmcgg.freesky.common.util;

import java.util.Date;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.apache.log4j.Logger;

/**
 * Title: FreeSky Common Java Library <br>
 * Description: FreeSky Common Java Library <br>
 * Copyright: Copyright (c) 2005~2009 www.afss.cn <br>
 * Company: Amei's FreeSky Studio <br>
 * 
 * @author <b>Jacky Chou</b> (AFSS [Amei's FreeSky Studio])
 * @version 1.2.1, 2008-08-05, Clean and optimize the source code.<br>
 *          1.2.0, 2008-02-23, Upgrade freesky.jar to 1.2.0 with Struts 2<br>
 *          1.0.0, 2006-05-30, Initial Version
 */
public class FreeskyInitServlet extends HttpServlet {
	private static final long serialVersionUID = -4053571493527827273L;

	/**
	 * Log4J Logger for this class
	 */
	private static final Logger logger = Logger
			.getLogger(FreeskyInitServlet.class);

	/*
	 * （非 Javadoc）
	 * 
	 * @see javax.servlet.Servlet#init(javax.servlet.ServletConfig)
	 */

	public void init(ServletConfig config) throws ServletException {
		System.out.println("==========Server starts at " + new Date()
				+ "==========");

		logger.info("init(ServletConfig) - Web Application Starting... - ServletConfig config="
				+ config);

		super.init(config);
	}
}
